package com.blb.community_admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.community_admin.entity.SysRole;

import java.util.List;

public interface IRoleService extends IService<SysRole> {

    List<SysRole> getRolesByUserId(Long userId);

    //模糊查询
    IPage<SysRole> getByText(Page<SysRole> sysRolePage,SysRole sysrole);

    //删除
    void deleteRoles(Long roleId);

    /**
     * 根据userId查询权限数据
     * @param userId
     * @return
     */
    SysRole getRoleByuserId(long userId);

}
